package com.dkd.model.cusServiceCall.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Bean
 * @since 2018-09-04
 */
@TableName("cus_service_call") // 注解指定表名
public class CusServiceCall extends Model<CusServiceCall> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID")
    private String id;
    private String businessId;
    private Date createTime;
    private String errorCode;
    private String phase;
    private String sendUrl;
    private String status;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getPhase() {
        return phase;
    }

    public void setPhase(String phase) {
        this.phase = phase;
    }

    public String getSendUrl() {
        return sendUrl;
    }

    public void setSendUrl(String sendUrl) {
        this.sendUrl = sendUrl;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CusServiceCall{" +
        ", id=" + id +
        ", businessId=" + businessId +
        ", createTime=" + createTime +
        ", errorCode=" + errorCode +
        ", phase=" + phase +
        ", sendUrl=" + sendUrl +
        ", status=" + status +
        "}";
    }

    /**1对 n的关系**/
    private List<CusServiceCallDetail> details;

    public List<CusServiceCallDetail> getDetails() {
        return details;
    }

    public void setDetails(List<CusServiceCallDetail> details) {
        this.details = details;
    }
}
